<template>
    <div class="yorha-loading-hover">
        <div class="yorha-loading-box">
            <div class="loading-box-round">
                <img src="../../assets/icons/loading.png">
            </div>
            <div class="loading-text">
                {{ contain }}
            </div>
        </div>
    </div>
</template>

<script setup>
let props = defineProps(['contain'])
</script>

<style lang="less" scoped>
@import "../../style";

.yorha-loading-hover {
    .yorha-hover;

    .yorha-loading-box {
        padding: 0 20px;
        height: 60px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: @yellowWhite;

        .loading-box-round {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                width: 40px;
                height: 40px;
                animation: yorha_loading 2s infinite linear;
                margin-right: 20px;
            }
        }

        .loading-text {
            height: 60px;
            line-height: 60px;
            font-size: 25px;
            color: @dark;
        }
    }
}
</style>